<template>
  <div class="demo">
    <h2>学校名称：{{ name | mySlice }}</h2>
    <h2>学校地址：{{ address }}</h2>
  </div>
</template>

<script>
export default {
  name: "SchoolSchool",
  data() {
    return {
      name: "CQQQQQQ",
      address: "SD",
    };
  },
};
</script>

<style scoped>
/* 
scoped解决冲突
app不适用：app的样式会是很多组件使用的样式
*/
.demo {
  background-color: aqua;
}
</style>

